import request from '@/utils/request'

export default {
    savePassWord(id, password) {
        return request({
            url: `/user/save/${id}`,
            method: 'put',
            data: { password },
        });
    },
    listIrregular() {
        return request({
            url: '/irregular/getList',
            method: 'get',
        });
    },
    listRegular() {
        return request({
            url: '/regular/getList',
            method: 'get',
        });
    },
    listIrregularPage(searchModel) {
        return request({
            url: '/irregular/getPage',
            method: 'get',
            params: {
                pageNo: searchModel.pageNo,
                pageSize: searchModel.pageSize,
            }
        });
    },
    listregularPage(searchModel) {
        return request({
            url: '/regular/getPage',
            method: 'get',
            params: {
                pageNo: searchModel.pageNo,
                pageSize: searchModel.pageSize,
            }
        });
    },
    compute2() {
        return request({
            url: '/regular/compute2',
            method: 'get',
        });
    },

    compute3() {
        return request({
            url: '/regular/compute3',
            method: 'get',
        });
    },
}